package cn.yunyichina.provider.framework.dubbo.service;

import cn.yunyichina.provider.framework.data.SpringContextHandler;
import cn.yunyichina.provider.iface.entity.common.Response;
import cn.yunyichina.provider.iface.service.IClinic;

public class ClinicService {

    static final String serviceName = "clinicService";

    static IClinic clinicService = null;

    static {
        clinicService = (IClinic) SpringContextHandler.getBean(serviceName);
    }
    
    public static IClinic getClinicClient(){
    	return clinicService;
    }

    public static Response callUnderlineFromInternal(String method, String data) {
        return clinicService.callUnderlineFromInternal("", method, data, (short) 0);
    }

    public static Response callUnderlineFromInternal(String sessionId, String method, String data) {
        return clinicService.callUnderlineFromInternal(sessionId, method, data, (short) 0);
    }

    public static Response callHumpFromInternal(String sessionId, String method, String data) {
        return clinicService.callHumpFromInternal(sessionId, method, data, (short) 0);
    }

    public static Response callHumpFromInternal(String method, String data) {
        return clinicService.callHumpFromInternal("", method, data, (short) 0);
    }
}
